package org.saasplay.core;

import org.saasplay.resource.FeedBack;
import org.saasplay.resource.ResourceData;
import org.saasplay.resource.Tickets;

/**
 * 资源数据补充
 *
 * @author cuishifeng
 */
public abstract class ResourceJoiner implements ServiceHandler {


    /**
     * 聚合、补充、或者修改服务资源数据
     *
     * @param tickets
     * @param resourceData
     * @return
     * @throws Exception
     */
    public abstract FeedBack JoinOrChangeResource(Tickets tickets, ResourceData resourceData) throws Exception;


    @Override
    public FeedBack getFeedBack(Tickets tickets, ResourceData resource) throws Exception {
        return JoinOrChangeResource(tickets, resource);
    }

}
